frontend:
	javac ./*.java
	rmic ServiceImpl
	rmiregistry 11099 &
	java Servidor
node1:
	mkdir /tmp/t_sd/
	echo 'file1 cliente1' > /tmp/t_sd/file1Cli1.txt
	echo 'file2 cliente1' > /tmp/t_sd/file2Cli1.txt
	echo 'file3 cliente1' > /tmp/t_sd/file3Cli1.txt
	rmic ArquivoImpl
	rmiregistry 21099 &
	java Cliente /tmp/t_sd/ node1 frontend 11099
node2:
	rm -rf /tmp/t_sd/
	mkdir /tmp/t_sd/
	echo 'file1 cliente2' > /tmp/t_sd/file1Cli2.txt
	echo 'file2 cliente2' > /tmp/t_sd/file2Cli2.txt
	echo 'file3 cliente2' > /tmp/t_sd/file3Cli2.txt
	rmic ArquivoImpl
	rmiregistry 21099 &
	java Cliente /tmp/t_sd/ node2 frontend 11099
node3:
	rm -rf /tmp/t_sd/
	mkdir /tmp/t_sd/
	echo 'file1 cliente2' > /tmp/t_sd/file1Cli3.txt
	echo 'file2 cliente2' > /tmp/t_sd/file2Cli3.txt
	echo 'file3 cliente2' > /tmp/t_sd/file3Cli3.txt
	rmic ArquivoImpl
	rmiregistry 21099 &
	java Cliente /tmp/t_sd/ node3 frontend 11099
kill:
	killall rmiregistry

